package com.example.demo.server.serciceimpl;

import com.example.demo.bean.MenumDataBytitle;
import com.example.demo.bean.User;
import com.example.demo.mapper.MenumMapper;
import com.example.demo.mapper.UserMapper;
import com.example.demo.server.MenumService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.ArrayList;
import java.util.List;

@Service
public class MenumSeviceImpl implements MenumService {

    @Autowired
    private MenumMapper menumMapper;


    @Override
    public List<MenumDataBytitle> Menum(String type) {
        List<MenumDataBytitle> list = new ArrayList<MenumDataBytitle>();
        list.clear();
        list =  menumMapper.selectMenuByid(type);
        System.out.println("长度！！！！！" + list.size());
        return list;
    }
}
